#ifndef __HEADER_TOOL__
#define __HEADER_TOOL__

#include "crypto/types.h"

typedef void (*RandomFunc)(void *buf, int len);

void ROL(unsigned int *s, unsigned short cx);
void LTOB(uint *data);
void LTOBL(uint64 *data);
void BTOL(uint *data);

bool isDigital(byte data);
bool isZero(byte data);

int _strnlen(char *key, int len);
int _strncmp(char *res, char *dst, int len);
void randomBuf(void *buffer, int len, RandomFunc func);

#endif